<template>
	<view class="chat_setting">
		<view class="content">
			<view class="userinfo">
				<image src="../../static/image/ico/jyxx.png" mode="" class="avatar"></image>
				<view class="name">张小萌</view>
			</view>
			<view class="setting">
				<view class="item">
					<view class="title">置顶聊天</view>
					<u-switch v-model="checked" size="40"></u-switch>
				</view>
				<view class="item">
					<view class="title">免打扰</view>
					<u-switch v-model="checked" size="40"></u-switch>
				</view>
				<view class="item">
					<view class="title">加入黑名单</view>
					<u-switch v-model="checked" size="40"></u-switch>
				</view>
				<view class="item" @tap="toPage('/pages/Notice/reportUser')">
					<view class="title">举报</view>
					<u-icon name="arrow-right" color="#C7C7C7" size="28"></u-icon>
				</view>
			</view>
			<view class="del">删除联系人</view>
		</view>
	</view>
</template>

<script>
	export default {
		components:{
			
		},
		data() {
			return {
				checked:false
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		methods: {
			// 跳转
			toPage(url){
				uni.navigateTo({
				    url: url
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.chat_setting{
		min-height: 100vh;
		background-color: #f9f9f9;
		.content{
			background-color: #ffffff;
			padding: 0 30rpx;
			.userinfo{
				display: flex;
				align-items: center;
				padding: 30rpx 0;
				border-bottom: 1px solid #E6E6E6;
				.avatar{
					width: 95rpx;
					height: 95rpx;
					border-radius: 50%;
				}
				.name{
					font-size: 32rpx;
					font-weight: 400;
					color: #333333;
					line-height: 32rpx;
					margin-left: 30rpx;
				}
			}
			.setting{
				.item{
					padding: 30rpx 0;
					border-bottom: 1px solid #E6E6E6;
					display: flex;
					justify-content: space-between;
					align-items: center;
					.title{
						font-size: 28rpx;
						font-weight: 400;
						color: #333333;
					}
				}
			}
			.del{
				text-align: center;
				padding: 30rpx 0;
				font-size: 28rpx;
				font-weight: 400;
				color: #DD2626;
			}
		}
	}
	
</style>
